import request from "@/utils/request";

// 查询美团列表
export function listMthylj(query) {
  return request({
    url: "/MtTakeaway/mthylj/list",
    method: "get",
    params: query,
  });
}

// 查询美团详细
export function getMthylj(id) {
  return request({
    url: "/MtTakeaway/mthylj/" + id,
    method: "get",
  });
}

// 新增美团
export function addMthylj(data) {
  return request({
    url: "/MtTakeaway/mthylj",
    method: "post",
    data: data,
  });
}

// 修改美团
export function updateMthylj(data) {
  return request({
    url: "/MtTakeaway/mthylj",
    method: "put",
    data: data,
  });
}

// 删除美团
export function delMthylj(id) {
  return request({
    url: "/MtTakeaway/mthylj/" + id,
    method: "delete",
  });
}
